<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">序号</div></th>
            <th class="text-center" width="30%">敏感词</th>
            <th class="text-center" width="25%">创建人</th>
            <th class="text-center" width="25%">创建时间</th>
            <th class="text-center" width="20%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyKeyWord">
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="30%">&nbsp;</th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="20%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="5" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>

            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="keyword:${dataMap['list']}" th:attr="data-id=${keyword['id']}">
                <td>
                    <input type="checkbox" class="i-checks" th:value="${keyword['id']}" th:text="${keyword['id']}">
                </td>
                <td class="text-center" th:text="${keyword['word']}"></td>
                <td class="text-center" th:text="${keyword['createUser']['username']}"></td>
                <td class="text-center" th:text="${#strings.substring(keyword['createTime'],0,16)}"></td>
                <td class="text-center">
                    <a href="javascript:void (0);" class="c-master fs14 ml5 deleteKeyWord"  th:attr="data-word=${keyword['word']},data-id=${keyword['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="删除">
                        <i class="fa fa-trash-o"></i>
                    </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
